Skip to content

Hide harmless loky warning#2011

Merged
psavery merged 1 commit into
masterfrom
hide-loky-warning
May 20, 2026
Merged

Hide harmless loky warning#2011
psavery merged 1 commit into
masterfrom
hide-loky-warning

Conversation

@psavery
Copy link
Copy Markdown
Collaborator

@psavery psavery commented May 13, 2026

Here is the warning, which would occur when closing the application:

/usr/local/lib/python3.14/multiprocessing/resource_tracker.py:396: UserWarning: resource_tracker: There appear to be 2 leaked semaphore objects to clean up at shutdown: {'/loky-853470-5i9c59nk', '/loky-853470-v_q7ann3'}

This also moves the logic for ignoring warnings into an ignore_warnings.py file.

Here is the warning, which would occur when closing the application:

```python
/usr/local/lib/python3.14/multiprocessing/resource_tracker.py:396: UserWarning: resource_tracker: There appear to be 2 leaked semaphore objects to clean up at shutdown: {'/loky-853470-5i9c59nk', '/loky-853470-v_q7ann3'}
```

This also moves the logic for ignoring warnings into an
`ignore_warnings.py` file.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
@psavery psavery requested review from bnmajor and saransh13 May 13, 2026 22:13
Copy link
Copy Markdown
Member

@saransh13 saransh13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@psavery psavery merged commit 4ec85d9 into master May 20, 2026
11 checks passed
@psavery psavery deleted the hide-loky-warning branch May 20, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants